package gameUi.panel
{
	import flash.events.MouseEvent;

	public class SurePanel extends SurePanelMC
	{
		/**
		 * 大于等于17点时弹出提示框
		 **/
		public function SurePanel()
		{
			cmdYes.addEventListener(MouseEvent.CLICK,clickCmdYes);
			cmdNo.addEventListener(MouseEvent.CLICK,clickCmdNo);
			cmdNoTips.addEventListener(MouseEvent.CLICK,clickCmdNoTips);
		}
		
		//点击是
		private function clickCmdYes(e:MouseEvent):void{
			BlackJack._gameUi.addCardPack();
			BlackJack._gameUi.closeSurePanel();
		}
		
		//点击否
		private function clickCmdNo(e:MouseEvent):void{
			BlackJack._gameUi.onClickCmdStop();
			BlackJack._gameUi.closeSurePanel();
		}
		
		//点击从不提示
		private function clickCmdNoTips(e:MouseEvent):void{
			BlackJack._gameUi.addCardPack();
			BlackJack._gameUi.tipOfSurePanel = false;
			BlackJack._gameUi.closeSurePanel();
		}
	}
}